package work20241210.a_String;

import java.util.Arrays;

/**
 * @author zdl
 * @date 2024/12/10
 */
public class StringLength {
    public static void main(String[] args) {
        String str = "java";
        System.out.println(str.length());//字符串长度
        char[] charArray = str.toCharArray();

        System.out.println(charArray.length);
    }
}
